package com.wutuo.classroom.api.request;


/**
 * 学堂 <br>
 *
 * @author lvh
 * @version 1.0
 */

public class ListLearningClassroomRequest extends LearningClassroomRequest {

    public ListLearningClassroomRequest() {
        this.setDelFlag(true);
    }

    private Integer page = 1;

    private Integer size = 10;

    private Integer index;

    public Integer getIndex() {
        return (page - 1) * size;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getPage() {
        return page < 1 ? 1 : page;
    }

    public Integer getSize() {
        return size;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

}